Suppress some unhelpful warnings when using clang.
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 23 Sep 2013 07:12:01 +0000 (09:12 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 23 Sep 2013 07:12:01 +0000 (09:12 +0200)
commit34c4a52089454e1c871650446ef4d5a0eeff7e5c
tree394385b3cd052e5dbbbf537e0484d9a65d744493
parent89649bdeea19f5b4d8297cda34fc20b33091801e
Suppress some unhelpful warnings when using clang.

* configure.ac: With clang, check for and use -Wno-switch,
-Wno-tautological-constant-out-of-range-compare and -Wno-pointer-sign.

* conf_post.h(assume): Use __builtin_unreachable for clang.

* src/filelock.c (lock_file_1): Rearrange to remove compiler warning
about excess arguments to snprintf.
ChangeLog
configure.ac
src/ChangeLog
src/conf_post.h
src/filelock.c